Matthias Clasen [Tue, 18 Sep 2012 02:47:36 +0000 (22:47 -0400)]
Force spinners to be square
Matthias Clasen [Tue, 18 Sep 2012 02:30:14 +0000 (22:30 -0400)]
GtkSettings: Properly clean up style providers
Matthias Clasen [Tue, 18 Sep 2012 02:10:59 +0000 (22:10 -0400)]
Revert "Bind the themes to the livecycle of the screen"
This reverts commit
1f5dea9eba4de5a54e9370fe8e4b90e6c0cec200,
since it was causeing noticable behaviour changes.
Previously, GTK_DATA_PREFIX=/ ./gtk3-demo would start
gtk3-demo with the Raleigh theme. With that change, it
was starting with no theme at all (i.e. all black).
Gabor Kelemen [Mon, 17 Sep 2012 22:08:25 +0000 (00:08 +0200)]
Updated Hungarian translation
Matthias Clasen [Mon, 17 Sep 2012 21:37:03 +0000 (17:37 -0400)]
gtk-demo: fancier css demo
Thanks to Lapo Calamandrei.
Rafael Ferreira [Mon, 17 Sep 2012 19:40:38 +0000 (15:40 -0400)]
Updated header for Brazilian Portuguese.
Og B. Maciel [Mon, 17 Sep 2012 19:39:01 +0000 (15:39 -0400)]
Updated Brazilian Portuguese translation.
Benjamin Otte [Mon, 17 Sep 2012 11:41:18 +0000 (13:41 +0200)]
css: Add a spinner animation to the default theme
Benjamin Otte [Mon, 17 Sep 2012 15:00:02 +0000 (17:00 +0200)]
cssanimation: Implement pausing the animation
Benjamin Otte [Mon, 17 Sep 2012 09:34:54 +0000 (11:34 +0200)]
stylecontext: Always create animations
Even when there is no current values, do create animations. This ensures
that animations do exist for unmapped widgets when they get mapped
later.
Benjamin Otte [Mon, 17 Sep 2012 09:30:21 +0000 (11:30 +0200)]
stylecontext: Only create transitions conditionally
While regular animations should always be created, transitions should
not. This patch allows to express this by passing NULL as the values to
transition from.
It also adds a gtk_style_context_should_create_transitions() function
that returns TRUE when transitions should be created.
Benjamin Otte [Mon, 17 Sep 2012 09:22:06 +0000 (11:22 +0200)]
stylecontext: Refactor the way animations are started and stopped
We now create animation objects unconditionally, but we only run the
animation loop when gtk_style_context_should_animate() return TRUE.
Benjamin Otte [Mon, 17 Sep 2012 08:53:16 +0000 (10:53 +0200)]
stylecontext: Clear animations for values kept in cache
Benjamin Otte [Mon, 17 Sep 2012 08:48:38 +0000 (10:48 +0200)]
stylecontext: Remove leftover debugging
... that actually was both wrong, a performance failure and has been
there since the original checkin.
Updating the cached style data absolutely does not mean clearing all
cached style data first. There's nothing to update then.
Benjamin Otte [Sun, 16 Sep 2012 17:07:40 +0000 (19:07 +0200)]
csscomputedvalues: Handle starting animations differently
Benjamin Otte [Sun, 16 Sep 2012 16:56:32 +0000 (18:56 +0200)]
animation: Don't set the changed properties anymore
The code is not needed anymore. And it looked wrong, too, so I'm glad
it's gone.
Benjamin Otte [Sun, 16 Sep 2012 16:51:07 +0000 (18:51 +0200)]
csscomputedvalues: Compute the changes by animations ourselves
Instead of letting the animation set a bitmask unconditionally, actually
compare the before and after values for changes.
Benjamin Otte [Sun, 16 Sep 2012 16:45:17 +0000 (18:45 +0200)]
cssimage: Make cross-fade code safe for non-integer sizes
This includes sizes < 1px, which previously caused a SEGV.
Benjamin Otte [Sun, 16 Sep 2012 16:44:59 +0000 (18:44 +0200)]
cssvalue: Fix out-of-bounds in array transition code
Cosimo Cecchi [Mon, 10 Sep 2012 17:15:25 +0000 (13:15 -0400)]
themingengine: animate spinners again
Using the animation specified with CSS by the theme.
Benjamin Otte [Sun, 16 Sep 2012 16:42:25 +0000 (18:42 +0200)]
cssvalue: Always consider values equal to themselves
Cosimo Cecchi [Mon, 10 Sep 2012 17:10:47 +0000 (13:10 -0400)]
csseasevalue: fix wrong priority in steps easing transformation
We need to add parentheses around the ternary operator, or it will be
applied to the whole expression.
Benjamin Otte [Fri, 14 Sep 2012 00:10:53 +0000 (02:10 +0200)]
tests: Add a simple CSS test for cross-fade
Benjamin Otte [Fri, 14 Sep 2012 00:06:14 +0000 (02:06 +0200)]
cssimage: Implement (most of) current cross-fade syntax
The CSS4 spec adapted their cross-fade syntax again. Yay!
(The previous parser was completely broken anyway...)
Benjamin Otte [Thu, 13 Sep 2012 16:11:29 +0000 (18:11 +0200)]
csscomputedvalues: Get rid of animated values
Merge the animated values code into the computed values code. This
should get rid of various bugs related to animated->computed updating.
Benjamin Otte [Thu, 13 Sep 2012 14:23:36 +0000 (16:23 +0200)]
csscomputedvalues: Store animated values here
Actually use the GtkCssComputedValues to store the computed values here
instead of putting them into the GtkCssAnimatedValues separately.
Benjamin Otte [Thu, 13 Sep 2012 12:25:52 +0000 (14:25 +0200)]
csscomputedvalues: Allow storing animated values here
It's not used yet, but that will come in the next patch(es). This is a
separate patch to make sure we didn't mess up anything.
Benjamin Otte [Thu, 13 Sep 2012 12:15:22 +0000 (14:15 +0200)]
csscomputedvalues: Inline function
Benjamin Otte [Wed, 12 Sep 2012 13:27:59 +0000 (15:27 +0200)]
animation: Add _gtk_style_animation_is_static()
This will be useful to not trigger updates all the time when nothing is
happening (ie due to animations being paused or due to them having
reached their final value).
Benjamin Otte [Mon, 10 Sep 2012 11:57:56 +0000 (13:57 +0200)]
css: Add animation support
This adds the GtkCssAnimation class and the code needed to hook it into
GtkStyleContext. It takes the values out of the CSS "animation"
properties and does animations. See
http://dev.w3.org/csswg/css3-animations/
for details.
Note that the code for starting and stopping animations with widget
visibility doesn't work yet.
Benjamin Otte [Mon, 10 Sep 2012 11:50:10 +0000 (13:50 +0200)]
widget: Use gtk_widget_queue_draw() for queueing redraws
This change is necessary because the old code did not accound for corner
cases (like translucent child windows), which could stop
gtk_widget_queue_resize() to not trigger redraws.
Benjamin Otte [Mon, 10 Sep 2012 10:35:46 +0000 (12:35 +0200)]
stylecontext: Provide a function for getting the style provider
This will be necessary for creating the computed values for keyframes.
Benjamin Otte [Mon, 10 Sep 2012 10:29:09 +0000 (12:29 +0200)]
window: Add the .background class to windows unconditionally
Benjamin Otte [Mon, 10 Sep 2012 10:15:44 +0000 (12:15 +0200)]
css: Implement 'animation' shorthand parsing
Benjamin Otte [Tue, 22 May 2012 11:41:05 +0000 (13:41 +0200)]
gtk-demo: Add animated pixbufs example
Benjamin Otte [Thu, 19 Apr 2012 15:05:22 +0000 (17:05 +0200)]
tests: Add test for last commit
Benjamin Otte [Thu, 19 Apr 2012 15:01:37 +0000 (17:01 +0200)]
cssparser: Don't use a free'd string in error messages
Benjamin Otte [Thu, 19 Apr 2012 12:50:38 +0000 (14:50 +0200)]
cssstyleproperty: Add animation properties
Benjamin Otte [Thu, 19 Apr 2012 12:50:05 +0000 (14:50 +0200)]
cssvalue: Add animation enum properties
Benjamin Otte [Thu, 19 Apr 2012 01:58:28 +0000 (03:58 +0200)]
styleprovider: Add query function for keyframes
Benjamin Otte [Thu, 19 Apr 2012 01:43:17 +0000 (03:43 +0200)]
tests: Add parsing test for keyframe parsing
Ensure we order properly when printing
Benjamin Otte [Thu, 19 Apr 2012 01:42:33 +0000 (03:42 +0200)]
tests: Add tests for keyframe parsing
Ensure we parse empty keyframes correctly
Benjamin Otte [Thu, 19 Apr 2012 01:41:41 +0000 (03:41 +0200)]
cssprovider: Add parsing support for @keyframes
Ryan Lortie [Mon, 17 Sep 2012 16:34:33 +0000 (12:34 -0400)]
gtk.symbols fixup
Ryan Lortie [Tue, 11 Sep 2012 15:38:06 +0000 (11:38 -0400)]
gtkmodelmenu: simplify logic, expose bind API
Make the main (and only) entry-point to gtkmodelmenu.c the now-public
gtk_menu_shell_bind_model().
Move the convenience constructors (gtk_menu_new_from_model() and
gtk_menu_bar_new_from_model()) to their proper files.
Remove the private header file.
Simplify the code a bit by making the initial populate part of the
bind() call.
https://bugzilla.gnome.org/show_bug.cgi?id=682831
Ryan Lortie [Mon, 10 Sep 2012 18:36:23 +0000 (14:36 -0400)]
GtkAccelLabel: add manual accel API
Add an API to GtkAccelLabel for hardcoding the accel key to be displayed
(ie: allowing us to bypass the GtkAccelGroup lookup).
Use that from the GMenuModel-based GtkMenu construction code instead of
passing around the accel group.
This makes accel labels work in bloatpad again.
This patch effectively removes any hope of automatic runtime accel
changes in GMenuModel-based menus without additional application
support but it leaves the door open for this to be supported again in
the future (if we decide that it's important).
https://bugzilla.gnome.org/show_bug.cgi?id=683738
Ryan Lortie [Fri, 24 Aug 2012 18:11:37 +0000 (14:11 -0400)]
GtkModelMenuItem: add a submenu action attribute
Add support for a stateful action associated with a submenu. The action
state is set to TRUE when the menu is shown and FALSE when it is
unshown.
This is useful to avoid unnecessary processing for menus that have
frequently-changing content.
A possible future feature is to add support for asynchronously filling
the initial state of the menu by waiting until the action actually emits
its state-change signal to TRUE before showing the menu.
A silly example has been added to Bloatpad to demonstrate the new
feature.
https://bugzilla.gnome.org/show_bug.cgi?id=682630
Lars Uebernickel [Thu, 13 Sep 2012 17:10:24 +0000 (13:10 -0400)]
Add example for "action-namespace" attribute
Theppitak Karoonboonyanan [Mon, 17 Sep 2012 15:37:40 +0000 (22:37 +0700)]
Updated Thai translation.
William Jon McCann [Mon, 17 Sep 2012 11:40:54 +0000 (07:40 -0400)]
Add back gtk_css_provider_get_named
Was in the original patch but was not in
1f5dea9 probably due to
a bad rebase.
https://bugzilla.gnome.org/show_bug.cgi?id=683896
Cosimo Cecchi [Mon, 17 Sep 2012 13:50:03 +0000 (09:50 -0400)]
menubutton: set DROPDOWN_MENU hint on the menu toplevel
Restore the behavior introduced in
598163e52684019e4975c3d4ca728a54b00c2f74, which regressed in commit
5a3442bf9c470736c8846534607be5825c22410b.
Ignacio Casal Quinteiro [Mon, 17 Sep 2012 12:50:18 +0000 (14:50 +0200)]
Do not introspect gtk_color_button_get_rgba.
This method is deprecated so it gets in the way of the
implemented gtk_color_chooser_get_rgba.
Matthias Clasen [Mon, 17 Sep 2012 11:51:04 +0000 (07:51 -0400)]
Preserve gtk_widget_get_default_style semantics
Make sure that we return a GtkStyle even if there's no screen yet.
Nilamdyuti Goswami [Mon, 17 Sep 2012 07:48:36 +0000 (13:18 +0530)]
Assamese translation updated
Matthias Clasen [Mon, 17 Sep 2012 03:25:40 +0000 (23:25 -0400)]
Move the gtk_shadow_type check down to gtk_render_frame
In gtk_menu_bar_draw, the check for shadow type != none
disables rendering of the background instead of the frame.
The check should be moved down to gtk_render_frame.
Patch by Peter de Ridder,
http://bugzilla.gnome.org/show_bug.cgi?id=670390
Sébastien Granjoux [Sat, 26 May 2012 20:32:07 +0000 (22:32 +0200)]
button: Clear highlight when a button is removed from a container
A button is highlighted if the private variable in_button is TRUE.
This variable is set when the pointer is over the button and cleared when
it left the button. When a button is hidden while there is the pointer over
it, GTK generates a leave notification event, in_button is set to FALSE.
But when a button is removed from a container but not destroyed, it is
unrealized and loose its window. It cannot receive the leave notification
event and in_button stay TRUE. So when the button get a new parent it is still
highlighted.
https://bugzilla.gnome.org/show_bug.cgi?id=676890
Sébastien Granjoux [Sat, 8 Sep 2012 12:21:32 +0000 (14:21 +0200)]
GtkAssistant: bgo#658694 - Unable to change current page in prepare handler
William Jon McCann [Wed, 12 Sep 2012 21:29:58 +0000 (17:29 -0400)]
Destroy the legacy style with the screen
https://bugzilla.gnome.org/show_bug.cgi?id=683896
William Jon McCann [Wed, 12 Sep 2012 20:43:32 +0000 (16:43 -0400)]
Don't leak a ref to the tooltip window
https://bugzilla.gnome.org/show_bug.cgi?id=683896
William Jon McCann [Wed, 12 Sep 2012 17:19:54 +0000 (13:19 -0400)]
Destroy the icon factory with the screen
https://bugzilla.gnome.org/show_bug.cgi?id=683896
William Jon McCann [Wed, 12 Sep 2012 13:08:28 +0000 (09:08 -0400)]
Don't leak a ref to the settings
https://bugzilla.gnome.org/show_bug.cgi?id=683896
William Jon McCann [Tue, 11 Sep 2012 20:50:20 +0000 (16:50 -0400)]
Bind the themes to the lifecycle of the screen
https://bugzilla.gnome.org/show_bug.cgi?id=683896
William Jon McCann [Fri, 14 Sep 2012 18:12:36 +0000 (14:12 -0400)]
Shut down a11y when an app shuts down
https://bugzilla.gnome.org/show_bug.cgi?id=684076
Colomban Wendling [Sun, 16 Sep 2012 17:17:08 +0000 (19:17 +0200)]
fontchooserwidget: scroll to the currently selected row
Scroll to the selection when setting it so the selected font is
visible on screen. This is especially useful if an initial font is
set for the user to see it.
https://bugzilla.gnome.org/show_bug.cgi?id=684156
Ignacio Casal Quinteiro [Wed, 12 Sep 2012 14:10:56 +0000 (16:10 +0200)]
Load settings.ini also from XDG_CONFIG_DIRS
https://bugzilla.gnome.org/show_bug.cgi?id=683874
Matthias Clasen [Sun, 16 Sep 2012 23:02:29 +0000 (19:02 -0400)]
Add missing argument in GTK_SPINNER_GET_CLASS
Aurimas Černius [Sun, 16 Sep 2012 20:13:43 +0000 (23:13 +0300)]
Updated Lithuanian properties translation
Ignacio Casal Quinteiro [Sun, 16 Sep 2012 17:02:20 +0000 (19:02 +0200)]
gtkoverlay: fix get-child-position annotation
Daniel Mustieles [Sun, 16 Sep 2012 11:22:54 +0000 (13:22 +0200)]
Updated Spanish translation
Daniel Mustieles [Sun, 16 Sep 2012 11:22:41 +0000 (13:22 +0200)]
Updated Spanish translation
Matthias Clasen [Sun, 16 Sep 2012 04:48:42 +0000 (00:48 -0400)]
Plug a leak
Matthias Clasen [Sun, 16 Sep 2012 04:48:18 +0000 (00:48 -0400)]
gtk-demo: Plug 2 small memleaks
Chao-Hsiung Liao [Sun, 16 Sep 2012 04:39:07 +0000 (12:39 +0800)]
Updated Traditional Chinese translation(Hong Kong and Taiwan)
Ask H. Larsen [Sat, 15 Sep 2012 21:41:30 +0000 (23:41 +0200)]
Updated Danish translation
Ask H. Larsen [Sat, 15 Sep 2012 21:40:17 +0000 (23:40 +0200)]
Updated Danish translation
Matthias Clasen [Sat, 15 Sep 2012 20:15:22 +0000 (16:15 -0400)]
Small tweaks to the DND docs
As pointed out by Columban Wendling in
https://bugzilla.gnome.org/show_bug.cgi?id=684096,
the GtkWidget DND docs were referring to several drag context
members that are private, nowadays.
Matthias Clasen [Fri, 14 Sep 2012 01:29:15 +0000 (21:29 -0400)]
Fix a memory leak in GtkCssStringValue
Matthias Clasen [Fri, 14 Sep 2012 01:23:12 +0000 (21:23 -0400)]
gtk-demo: Plug another small memleak
Matej Urbančič [Sat, 15 Sep 2012 18:51:38 +0000 (20:51 +0200)]
Updated Slovenian translation
Duarte Loreto [Sat, 15 Sep 2012 18:32:37 +0000 (19:32 +0100)]
Updated Portuguese translation
Yuri Myasoedov [Sat, 15 Sep 2012 15:36:27 +0000 (19:36 +0400)]
Updated Russian translation
Alexandre Franke [Sat, 15 Sep 2012 15:34:48 +0000 (17:34 +0200)]
Update French translation
Andika Triwidada [Sat, 15 Sep 2012 10:44:42 +0000 (17:44 +0700)]
Updated Indonesian translation
Tom Tryfonidis [Sat, 15 Sep 2012 09:17:22 +0000 (12:17 +0300)]
Updated Greek translation
Fran Diéguez [Fri, 14 Sep 2012 23:59:20 +0000 (01:59 +0200)]
Updated Galician translations
Piotr Drąg [Fri, 14 Sep 2012 21:50:52 +0000 (23:50 +0200)]
Updated Polish translation
Piotr Drąg [Fri, 14 Sep 2012 21:49:34 +0000 (23:49 +0200)]
Updated Polish translation
Benjamin Otte [Fri, 14 Sep 2012 21:24:33 +0000 (17:24 -0400)]
cssimage: Make cross-fades cross-fade properly
We need to use OPERATOR_SOURCE to properly fade out the start image
when the end image contains transparency.
Juan Pablo Ugarte [Thu, 13 Sep 2012 19:00:32 +0000 (16:00 -0300)]
Added GtkActionGroup:accel-group property.
Fixes bug #671786 "Glade XML files cannot set an ImageMenuItem accelerator key from an Action"
Cosimo Cecchi [Fri, 14 Sep 2012 17:03:07 +0000 (13:03 -0400)]
togglebutton: always set PRELIGHT state when in_button = TRUE
Previously, we would avoid setting the prelight state flag when
button_down was TRUE and draw_indicator = FALSE, which is the normal
case of a GtkToggleButton during a mouse press.
It looks like this behavior was introduced a long time ago with commit
b94e6c0a8036a0489ac8ca71de75ba7611218e50. I believe the reason was that
a widget in GTK2 couldn't have more than a single state (e.g.
hover+active) at a given moment.
https://bugzilla.gnome.org/show_bug.cgi?id=684038
Michael Natterer [Fri, 14 Sep 2012 13:18:33 +0000 (15:18 +0200)]
quartz: Bug 674108 - Hard crash due to wrong NSAutoreleasePool stacking
Apply patch from Kristian Rietveld which addresses two issues
in gdkeventloop-quartz.c:
This patch moves the autorelease pool drain and introduces protection against
the invalidated ufds. Basically, when we suspect ufds has been invalidated by a
recursive main loop instance, we refrain from calling the collect function.
(cherry picked from commit
79b3326eaab18b942bd7e03ae8d24544182cb3dd)
Мирослав Николић [Fri, 14 Sep 2012 07:34:36 +0000 (09:34 +0200)]
Updated Serbian translation
A S Alam [Fri, 14 Sep 2012 02:06:15 +0000 (07:36 +0530)]
update Punjabi Translation
Matthias Clasen [Fri, 14 Sep 2012 00:04:38 +0000 (20:04 -0400)]
gtk-demo: Plug a small memleak
Cosimo Cecchi [Thu, 13 Sep 2012 17:48:43 +0000 (13:48 -0400)]
stylecontext: fix a StyleData refleak
We were failing to unref the style data in some code paths.
https://bugzilla.gnome.org/show_bug.cgi?id=683627
Aurimas Černius [Thu, 13 Sep 2012 19:55:30 +0000 (22:55 +0300)]
Updated Lithuanian properties translation
Alexandre Franke [Thu, 13 Sep 2012 10:20:05 +0000 (12:20 +0200)]
Update French translation
Matthias Clasen [Thu, 13 Sep 2012 04:14:16 +0000 (00:14 -0400)]
Plug a small memory leak
Matthias Clasen [Thu, 13 Sep 2012 04:10:50 +0000 (00:10 -0400)]
Fix doc comment
The setting was only introduced in 3.6.
Tom Tryfonidis [Thu, 13 Sep 2012 00:13:55 +0000 (03:13 +0300)]
Updated Greek translation